package com.chen.learnknowledge.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * 员工表，多个员工可能有同一个部门，多对一
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Staff implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    private String lastName;
    private String email;
    private String gender;
    private Integer departmentId;
    private Department department;
}
